<template>
    <div>
        <HearderNav></HearderNav>
        <template v-if="list">
            <Sidebar :list="list"></Sidebar>
        </template>
        <Tabbar></Tabbar>
    </div>
</template>
<script>
import Sidebar from "@/components/Destination/Sidebar.vue";
export default {
    components: { Sidebar },
    data() {
        return {
            list: null,
        };
    },
    async created() {
        let data = await this.$API.DestinationAPI.GetDestinationAPI();
        if (data.code == 0) {
            this.list = data.data.list;
            // console.log(this.list);
        }
    },
};
</script>

<style>
</style>